<template>
  <router-link class="detailBottom" :to="'/commit/' + detailType + '/' + id">
    <img src="@/assets/images/other/c.png" alt="" />
    <span v-text="number"></span>
  </router-link>
</template>
<script>
export default {
  name: "detailBottom",
  data() {
    return {};
  },
  props: {
    number: {
      type: Number,
      value: 0,
    },
    detailType: {
      type: String,
      value: "detailArt",
    },
    id: {
      type: String,
      value: "1",
    },
  },
  methods: {},
};
</script>
<style scoped lang="less">
.detailBottom {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 40px;
  width: 100%;
  background: url(@/assets/images/other/bottom1.jpg) no-repeat center center;
  background-size: 100% 100%;
  box-shadow: 0 -1px 10px 2px rgba(0, 0, 0, 0.2);
  img {
    position: absolute;
    top: 5px;
    left: 60%;
    width: 30px;
    height: 30px;
  }
  span {
    position: absolute;
    top: -2px;
    color: red;
    left: 65%;
  }
}
</style>
